﻿<Window
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	x:Class="ChanCenter"
	x:Name="Window"
	Title="ChanCenter"
	Width="503" Height="308" WindowStyle="None" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" ResizeMode="NoResize" WindowStartupLocation="CenterScreen" Icon="..\Images\mChat.ico" Background="{DynamicResource ToolbarBGBrush}">

	<Window.Resources>
		<LinearGradientBrush x:Key="ToolbarBGBrush" EndPoint="0.5,1" StartPoint="0.5,0">
			<GradientStop Color="#FF969696" Offset="0"/>
			<GradientStop Color="#FFA6A6A6" Offset="1"/>
		</LinearGradientBrush>
		<Style x:Key="ChanCenterTC" TargetType="{x:Type TabControl}">
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type TabControl}">
						<Grid KeyboardNavigation.TabNavigation="Local">
							<Grid.RowDefinitions>
								<RowDefinition Height="Auto"/>
								<RowDefinition Height="*"/>
							</Grid.RowDefinitions>
						
							<TabPanel Grid.Row="0" Margin="0,6,26,0" x:Name="HeaderPanel" Background="Transparent" IsItemsHost="True" Panel.ZIndex="1" KeyboardNavigation.TabIndex="1" Height="21.96" VerticalAlignment="Top" d:LayoutOverrides="VerticalAlignment" RenderTransformOrigin="0.5,0.5">
								<TabPanel.RenderTransform>
									<TransformGroup>
										<ScaleTransform ScaleX="1" ScaleY="1"/>
										<SkewTransform AngleX="0" AngleY="0"/>
										<RotateTransform Angle="0"/>
										<TranslateTransform X="0" Y="0"/>
									</TransformGroup>
								</TabPanel.RenderTransform>
							</TabPanel>
						
							<Border Grid.Row="1" x:Name="Border" Background="{DynamicResource ToolbarBGBrush}" BorderBrush="#FFFFCF01" BorderThickness="1" CornerRadius="2" KeyboardNavigation.DirectionalNavigation="Contained" KeyboardNavigation.TabNavigation="Local" KeyboardNavigation.TabIndex="2" Margin="0,0,0,-4">
							
								<!-- The implementation switches the content. This control must be named PART_SelectedContentHost -->
								<ContentPresenter Margin="4" x:Name="PART_SelectedContentHost" ContentSource="SelectedContent"/>
							
							</Border>
						</Grid>					
						<ControlTemplate.Triggers>
							<Trigger Property="IsEnabled" Value="False">
								<Setter Property="Foreground" Value="{DynamicResource DisabledForegroundBrush}"/>
								<Setter Property="BorderBrush" Value="#FFFFCF01" TargetName="Border"/>
							</Trigger>
						</ControlTemplate.Triggers>
				
					</ControlTemplate>
				</Setter.Value>
			</Setter>
			<Setter Property="Background" Value="#FF535353"/>
			<Setter Property="Foreground" Value="#FFFFFFFF"/>
		</Style>
	
		<!-- Simple Button - This control sets brushes on each state. Note that these brushes must be listed above since they are static resources -->
		<Style x:Key="ConnectButton" TargetType="{x:Type Button}" BasedOn="{x:Null}">
			<!-- Setter Property="FocusVisualStyle" Value="{DynamicResource SimpleButtonFocusVisual}"/-->
			<Setter Property="Background" Value="#FF535353"/>
			<Setter Property="BorderBrush" Value="#FF535353"/>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type Button}">
					
						<!-- We use Grid as a root because it is easy to add more elements to customize the button -->
						<Grid x:Name="Grid" Width="Auto" Height="Auto" HorizontalAlignment="Stretch">
							<Border x:Name="Border" Background="{x:Null}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"/>
						
							<ContentPresenter HorizontalAlignment="Center" Margin="0,0,0,0" VerticalAlignment="Center" RecognizesAccessKey="True" Height="Auto" RenderTransformOrigin="0.5,0.5" d:LayoutOverrides="Width, Height">
								<ContentPresenter.RenderTransform>
									<TransformGroup>
										<ScaleTransform ScaleX="1" ScaleY="1"/>
										<SkewTransform AngleX="0" AngleY="0"/>
										<RotateTransform Angle="0"/>
										<TranslateTransform X="0" Y="0"/>
									</TransformGroup>
								</ContentPresenter.RenderTransform>
							</ContentPresenter>
						
							<!-- Content Presenter is where the text content etc is placed by the control -->
						</Grid>
					
						<!--Each state sets a brush on the Border in the template -->
						<ControlTemplate.Triggers>
							<Trigger Property="IsKeyboardFocused" Value="true">
							
								<!-- Setter Property="BorderBrush" Value="{DynamicResource DefaultedBorderBrush}" TargetName="Border"/-->
							</Trigger>
							<Trigger Property="IsMouseOver" Value="true">
								<Setter Property="BorderBrush" Value="#FFFFCF01" TargetName="Border"/>
							</Trigger>
							<Trigger Property="IsPressed" Value="true">
								<Setter Property="Foreground" Value="#FF000000"/>
								<Setter Property="Background" Value="{DynamicResource HoverBrush}" TargetName="Border"/>
								<Setter Property="BorderBrush" Value="{DynamicResource HoverBrush}" TargetName="Border"/>
							</Trigger>
							<Trigger Property="IsEnabled" Value="true"/>
							<Trigger Property="IsEnabled" Value="false">
								<Setter Property="Background" Value="{DynamicResource DisabledBackgroundBrush}" TargetName="Border"/>
								<Setter Property="BorderBrush" Value="{DynamicResource DisabledBorderBrush}" TargetName="Border"/>
								<Setter Property="Foreground" Value="{DynamicResource DisabledForegroundBrush}"/>
							</Trigger>
						</ControlTemplate.Triggers>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
		<Style x:Key="WhiteFG" TargetType="{x:Type ListBoxItem}">
			<Setter Property="Background" Value="Transparent"/>
			<Setter Property="HorizontalContentAlignment" Value="{Binding Path=HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
			<Setter Property="VerticalContentAlignment" Value="{Binding Path=VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
			<Setter Property="Padding" Value="2,0,0,0"/>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type ListBoxItem}">
						<Border x:Name="Bd" SnapsToDevicePixels="true" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}">
							<ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
						</Border>
						<ControlTemplate.Triggers>
							<Trigger Property="IsSelected" Value="true">
								<Setter Property="Background" TargetName="Bd" Value="{DynamicResource HoverBrush}"/>
								<Setter Property="Foreground" Value="{DynamicResource SolidBlack}"/>
							</Trigger>
							<MultiTrigger>
								<MultiTrigger.Conditions>
									<Condition Property="IsSelected" Value="true"/>
									<Condition Property="Selector.IsSelectionActive" Value="false"/>
								</MultiTrigger.Conditions>
								<Setter Property="Background" TargetName="Bd" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/>
								<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
							</MultiTrigger>
							<Trigger Property="IsEnabled" Value="false">
								<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
							</Trigger>
						</ControlTemplate.Triggers>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
		<SolidColorBrush x:Key="SolidBlack" Color="#FF000000"/>
		<Style x:Key="MultiLineItem" TargetType="{x:Type ListBoxItem}">
			<Setter Property="Background" Value="Transparent"/>
			<Setter Property="HorizontalContentAlignment" Value="{Binding Path=HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
			<Setter Property="VerticalContentAlignment" Value="{Binding Path=VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
			<Setter Property="Padding" Value="2,0,0,0"/>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type ListBoxItem}">
						<Border x:Name="Bd" SnapsToDevicePixels="true" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}" Height="14.277">
							<ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
						</Border>
						<ControlTemplate.Triggers>
							<Trigger Property="IsSelected" Value="true">
								<Setter Property="Background" TargetName="Bd" Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}"/>
								<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.HighlightTextBrushKey}}"/>
							</Trigger>
							<MultiTrigger>
								<MultiTrigger.Conditions>
									<Condition Property="IsSelected" Value="true"/>
									<Condition Property="Selector.IsSelectionActive" Value="false"/>
								</MultiTrigger.Conditions>
								<Setter Property="Background" TargetName="Bd" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/>
								<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
							</MultiTrigger>
							<Trigger Property="IsEnabled" Value="false">
								<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
							</Trigger>
						</ControlTemplate.Triggers>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
	</Window.Resources>

	<Grid x:Name="LayoutRoot">
		<Border Margin="-1,-1,-1.01,0" VerticalAlignment="Top" Height="22.25" CornerRadius="5,4,0,0" BorderBrush="#00505050" BorderThickness="1,1,1,0" x:Name="Titlebar">
			<Border.Background>
				<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
					<GradientStop Color="#FF969696" Offset="1"/>
					<GradientStop Color="#FFC2C2C2" Offset="0"/>
				</LinearGradientBrush>
			</Border.Background>
			<TextBlock Width="311.847" Height="15" Text="MChat Channel Center" TextWrapping="Wrap" x:Name="Tblabel" Foreground="#FF0A0101" TextTrimming="WordEllipsis" TextAlignment="Center" d:IsStaticText="False" FontSize="11" FontStyle="Italic"/>
		</Border>
		<Image HorizontalAlignment="Right" Margin="0,3,1.645,0" VerticalAlignment="Top" Width="14" Height="15" Source="..\Images\close.png" Stretch="Fill" x:Name="CloseButton"/>
		<Image HorizontalAlignment="Right" Margin="0,3,19.645,0" VerticalAlignment="Top" Width="14" Height="15" Source="..\Images\Maximize.png" Stretch="Fill" x:Name="Max"/>
		<Image HorizontalAlignment="Right" Margin="0,3.5,37.645,0" VerticalAlignment="Top" Width="14" Height="15" Source="..\Images\Minimize.png" Stretch="Fill" x:Name="Min"/>
		<Image HorizontalAlignment="Left" Margin="4,2,0,0" VerticalAlignment="Top" Width="21" Height="21" Source="..\Images\mChat.ico" Stretch="Fill"/>
		<Button Style="{DynamicResource ConnectButton}" Content="Ok" BorderThickness="1,1,1,1" Background="#FF5C5C5D" x:Name="OKButton" BorderBrush="#FF535353" FontFamily="Comic Sans MS" Foreground="#FF000000" RenderTransformOrigin="0.433,-0.126" HorizontalAlignment="Right" Width="86.995" VerticalAlignment="Bottom" Height="24" Margin="0,0,6.55,3.495">
			<Button.RenderTransform>
				<TransformGroup>
					<ScaleTransform ScaleX="1" ScaleY="1"/>
					<SkewTransform AngleX="0" AngleY="0"/>
					<RotateTransform Angle="-360.296"/>
					<TranslateTransform X="-0.064" Y="0.021"/>
				</TransformGroup>
			</Button.RenderTransform>
		</Button>
		<ListBox IsSynchronizedWithCurrentItem="True" Margin="10,60.272,111.515,115.728" x:Name="BanListBox" BorderBrush="#FF525252" Background="{DynamicResource ToolbarBGBrush}"/>
		<Button Style="{DynamicResource ConnectButton}" Content="Bans" BorderThickness="1,1,1,1" Background="#FF5C5C5D" x:Name="GetBans" BorderBrush="#FF535353" FontFamily="Comic Sans MS" Foreground="#FF000000" RenderTransformOrigin="0.433,-0.126" Margin="0,63.767,9.418,0" HorizontalAlignment="Right" VerticalAlignment="Top" Width="86.995" Height="24">
			<Button.RenderTransform>
				<TransformGroup>
					<ScaleTransform ScaleX="1" ScaleY="1"/>
					<SkewTransform AngleX="0" AngleY="0"/>
					<RotateTransform Angle="-360.296"/>
					<TranslateTransform X="-0.064" Y="0.021"/>
				</TransformGroup>
			</Button.RenderTransform>
		</Button>
		<Button Style="{DynamicResource ConnectButton}" Content="Excepts" BorderThickness="1,1,1,1" Background="#FF5C5C5D" x:Name="GetExcepts" FontFamily="Comic Sans MS" Foreground="#FF000000" RenderTransformOrigin="0.433,-0.126" Margin="0,97.272,9.52,0" BorderBrush="#FF535353" HorizontalAlignment="Right" Width="86.995" Height="24" VerticalAlignment="Top">
			<Button.RenderTransform>
				<TransformGroup>
					<ScaleTransform ScaleX="1" ScaleY="1"/>
					<SkewTransform AngleX="0" AngleY="0"/>
					<RotateTransform Angle="-360.296"/>
					<TranslateTransform X="-0.064" Y="0.021"/>
				</TransformGroup>
			</Button.RenderTransform>
		</Button>
		<Button Style="{DynamicResource ConnectButton}" Content="Invites" BorderThickness="1,1,1,1" Background="#FF5C5C5D" x:Name="GetInvites" BorderBrush="#FF535353" FontFamily="Comic Sans MS" Foreground="#FF000000" RenderTransformOrigin="0.433,-0.126" Margin="0,131.34,9.238,150.66" HorizontalAlignment="Right" Width="86.995">
			<Button.RenderTransform>
				<TransformGroup>
					<ScaleTransform ScaleX="1" ScaleY="1"/>
					<SkewTransform AngleX="0" AngleY="0"/>
					<RotateTransform Angle="-360.296"/>
					<TranslateTransform X="-0.064" Y="0.021"/>
				</TransformGroup>
			</Button.RenderTransform>
		</Button>
		<Button Style="{DynamicResource ConnectButton}" Content="Remove" BorderThickness="1,1,1,1" Background="#FF5C5C5D" x:Name="RemoveBan" FontFamily="Comic Sans MS" Foreground="#FF000000" RenderTransformOrigin="0.433,-0.126" Margin="0,0,9.52,117.456" BorderBrush="#FF535353" HorizontalAlignment="Right" Width="86.995" IsEnabled="False" VerticalAlignment="Bottom" Height="24">
			<Button.RenderTransform>
				<TransformGroup>
					<ScaleTransform ScaleX="1" ScaleY="1"/>
					<SkewTransform AngleX="0" AngleY="0"/>
					<RotateTransform Angle="-360.296"/>
					<TranslateTransform X="-0.064" Y="0.021"/>
				</TransformGroup>
			</Button.RenderTransform>
		</Button>
		<Label HorizontalAlignment="Left" Margin="7,26.25,0,0" VerticalAlignment="Top" Width="66" Height="25.75" Content="Topic:"/>
		<Border Background="#FFFFFFFF" CornerRadius="4,4,4,4" BorderBrush="{x:Null}" x:Name="border" RenderTransformOrigin="0.5,0.5" Margin="60.5,28,9.5,0" Height="24" VerticalAlignment="Top" Visibility="Visible" d:LayoutOverrides="Height">
			<Border.RenderTransform>
				<TransformGroup>
					<ScaleTransform ScaleX="1" ScaleY="1"/>
					<SkewTransform AngleX="0" AngleY="0"/>
					<RotateTransform Angle="0"/>
					<TranslateTransform X="0" Y="0"/>
				</TransformGroup>
			</Border.RenderTransform>
			<Border.BitmapEffect>
				<OuterGlowBitmapEffect/>
			</Border.BitmapEffect>
			<Border.BitmapEffectInput>
				<BitmapEffectInput/>
			</Border.BitmapEffectInput>
			<TextBox Width="Auto" Height="22" Text="" TextWrapping="Wrap" BorderThickness="0,0,0,0" x:Name="topic" FontStyle="Italic" Margin="3,0,3,0"/>
		</Border>
		<CheckBox HorizontalAlignment="Left" Margin="10,0,0,83" VerticalAlignment="Bottom" Width="132" Height="17" Content="Only ops set topic" x:Name="oost"/>
		<CheckBox Margin="146,0,217,83" VerticalAlignment="Bottom" Height="17" Content="No External Messages" x:Name="noexmess"/>
		<CheckBox HorizontalAlignment="Left" Margin="10,0,0,28" x:Name="priv" VerticalAlignment="Bottom" Width="122" Height="17" Content="Private"/>
		<CheckBox Margin="0,0,157,55.272" x:Name="key" VerticalAlignment="Bottom" Height="17" Content="Key:" Width="41" HorizontalAlignment="Right"/>
		<CheckBox Margin="10,0,0,55" x:Name="mod" VerticalAlignment="Bottom" Height="17" Content="Moderated" Width="122" HorizontalAlignment="Left"/>
		<CheckBox Margin="146,0,234,28" x:Name="secr" VerticalAlignment="Bottom" Height="17" Content="Secret"/>
		<CheckBox Margin="146,0,235,55" x:Name="invonl" VerticalAlignment="Bottom" Height="17" Content="Invite Only"/>
		<TextBox HorizontalAlignment="Right" Margin="0,0,35.645,52.272" VerticalAlignment="Bottom" Width="117.355" Height="20.728" Text="" TextWrapping="Wrap"/>
		<CheckBox Margin="0,0,132,84" x:Name="limusrs" VerticalAlignment="Bottom" Height="17" Content="Limit to:" HorizontalAlignment="Right" Width="66"/>
		<TextBox HorizontalAlignment="Right" Margin="0,0,96,83" VerticalAlignment="Bottom" Width="36" Height="19" Text="" TextWrapping="Wrap"/>
		<Label HorizontalAlignment="Right" Margin="0,0,30,82" VerticalAlignment="Bottom" Width="62" Height="24" Content="users"/>
		
	</Grid>
</Window>